<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:include="head :: hpage"></div>

div:<div th:text="${world}"/><br/>
input:<input th:value="${world}"/><br/>
直接输出：[[${world}]]<br/>

<!-- div：从Session中取值:<div th:text="${session.world}"/><br/> -->

<table>
    <tr th:each="lm,st:${listMap}">
        <td th:text="${lm.id}"></td>
        <td th:text="${lm.name}"></td>
        <td th:text="${st.size}"></td>
    </tr>
</table><br/>
三元运算：<div th:text="${num == 10?'是10':'不是10'}"></div><br/>
if判断：<div th:if="${num == 10}">是10</div>
<div th:if="${num != 10}">不是10</div>
if判断取反值：<div th:unless="${num == 10}">是10</div>
             <div th:unless="${num != 10}">不是10</div><br/>

<div th:utext="${gname}"/>
</body>
</html>